package com.ruleengine.task;

import java.util.List;

import com.ruleengine.task.condition.ICondition;
import com.ruleengine.task.handler.IExceptionHandler;

public interface IComplexTask extends ITask {
    
    //任务成立条件
    public ICondition getCondition();
    public void setCondition(ICondition condition);
    
    //子工作流任务
    public List<ITask> getSubTasks();
    public ITask getSubTask(int cursor);
    public void setSubTasks(List<ITask> subTasks);
    public void addSubTask(ITask task);
    
    //后置异常处理
    public IExceptionHandler getExceptionHandler();
    public void  setExceptionHandler(IExceptionHandler exceptionHandler);
    
}
